package Thread;

/**
 * Created by pc on 4/11/16.
 */
public class DaemonDemo {
    public static void main(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                while (true) {
                    System.out.println("orz");
                }
            }
        };

        thread.setDaemon(true);
        thread.start();
    }
}
